package composite.menu;

import java.util.ArrayList;

public class Menu extends MenuComponent
{

	ArrayList<MenuComponent> menuComponents = new ArrayList<MenuComponent>();

	String name;

	String description;

	public Menu(String name, String description)
	{
		this.name = name;
		this.description = description;
	}

	public void add(MenuComponent menuComponent)
	{
		menuComponents.add(menuComponent);
	}

	public void remove(MenuComponent menuComponent)
	{
		menuComponents.remove(menuComponent);
	}
	
	public MenuComponent getChild(int i){
		return menuComponents.get(i);
	}
}
